﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<%
	if(session.getAttribute("userinfo")!=null)
	{
%>
<HTML>
<HEAD><TITLE>首页</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8"> 
<link type="text/css" href="<c:url value="/inc/css/sty_css.css" />"rel="stylesheet"></link>
</HEAD>
<body style="MARGIN: 0px" scrolling="no" onResize="javascript:parent.carnoc.location.reload();">
	<!-- header begin-->
	<div id="header">
		<div id="heder_inner">
			<div class="logo"><a href="#"></a></div>
			<%! String startdate= new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm").format(new java.util.Date()); %>
			<div class="userinfos"><span>欢迎&nbsp;<c:out value="${userinfo.name}"/>&nbsp;光临</span><%=startdate %> &nbsp;[<a href="<c:url value='/user/out.do'/>"> 退出登录</a> ]</div>
		</div>
	</div>
	<!-- header end-->
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="10%" valign="top">
				<div class="left_silder">
					<div class="left_mid">
						<ul id="navigation">
							<li><a  class="head" href="#"   onclick="displayMenu(2);">系统管理</a>
								<ul  id="left2" style="DISPLAY: none">
					                <li><a target="main" href="user/index.do">用户管理</a></li>
					                <li><a target="main" href="/company/index.do?company_type=1">通道管理</a>
					                <li><a target="main" href="/company/index.do?company_type=2">客服管理</a>
					                <li><a target="main" href="/sp/index.do">上行查询</a></li>  
								</ul>
							</li>
						</ul>
					</div>
					<div class="left_bottom"></div>
				</div>
			</td>
			<!-- right begin-->
			<td style="WIDTH: 100%">
			<iframe frameBorder="0" id="main" name="main" scrolling=yes src="/main.jsp" style="HEIGHT: 600pt; VISIBILITY: inherit; WIDTH:100%; Z-INDEX: 2"></iframe>
			</td>			
			<!-- rigth end-->
		</tr>
	</table>
</body>
<script type="text/javascript">
function displayMenu(m)
{
	var div=document.getElementById("left"+m).style.display;	
	if(div=="none")
	{
		document.getElementById("left"+m).style.display="block";
	}else
	{
		document.getElementById("left"+m).style.display="none";
	}
	return false;
}
</script>
</HTML>
<%
}else{
		response.sendRedirect("/login.jsp");
	}
%>